

(function(jQuery) {
	jQuery.fn.validationEngineLanguage = function() {};
	jQuery.validationEngineLanguage = {
		newLang: function() {
			jQuery.validationEngineLanguage.allRules = 	{"required":{    			// Add your regex rules here, you can take telephone as an example
						"regex":"none",
						"alertText":"* 此项为必填",
						"alertTextCheckboxMultiple":"* 请选择一项",
						"alertTextCheckboxe":"* 此选项是必选项"},
					"length":{
						"regex":"none",
						"alertText":"*字符个数需在 ",
						"alertText2":" 和 ",
						"alertText3": " 之间"},
					"maxCheckbox":{
						"regex":"none",
						"alertText":"* Checks allowed Exceeded"},	
					"minCheckbox":{
						"regex":"none",
						"alertText":"* 请选择 ",
						"alertText2":" options"},	
					"confirm":{
						"regex":"none",
						"alertText":"* Your field is not matching"},		
					"telephone":{
						"regex":"/^[0-9\-\(\)\ ]+$/",
						"alertText":"* 无效的电话号码"},	
					"email":{
						"regex":"/^[a-zA-Z0-9_\.\-]+\@([a-zA-Z0-9\-]+\.)+[a-zA-Z0-9]{2,4}$/",
						"alertText":"* 无效的email地址"},	
					"date":{
                         "regex":"/^[0-9]{4}\-\[0-9]{1,2}\-\[0-9]{1,2}jQuery/",
                         "alertText":"* 无效的日期类型, 例如： YYYY-MM-DD格式"},
					"onlyNumber":{
						"regex":"/^[0-9\ ]+jQuery/",
						"alertText":"* 仅可以是数字"},	
					"noSpecialCaracters":{
						"regex":"/^[0-9a-zA-Z]+jQuery/",
						"alertText":"* No special caracters allowed"},	
					"ajaxUser":{
						"file":"validateUser.php",
						"extraData":"name=eric",
						"alertTextOk":"* 该用户名可以使用",	
						"alertTextLoad":"* ...请稍等",
						"alertText":"* 该用户名已被注册"},	
					"ajaxName":{
						"file":"validateUser.php",
						"alertText":"* 该用户名已被注册",
						"alertTextOk":"* 该用户名名可以使用",	
						"alertTextLoad":"* ...请稍等"},		
					"onlyLetter":{
						"regex":"/^[a-zA-Z\ \']+jQuery/",
						"alertText":"* Letters only"},
					"validate2fields":{
    					"nname":"validate2fields",
    					"alertText":"* You must have a firstname and a lastname"}	
					}	
					
		}
	}
})(jQuery);

jQuery(document).ready(function() {	
	jQuery.validationEngineLanguage.newLang()
});